There are two tables in the database: Large classification Bigtype table and small classification Smalltype table.
Bigtype in the table: Id,bigname;
Smalltype in the table: Smallid,bigid,smallname;
Train of thought: (mainly according to gourd, according to the official example of the whole) first read a large classification table, to achieve large classification, when the large classification of each selection, the selected large classification ID
asp+| dropdown | Drop-down List | Last time I introduced the database and Flash connection mode. Here, I will not say more ...
There is also the code in ASP. I'm not going to say anything. Just stick it out ...
Dim rsbiclass,outbigclass,outbigclassid
Sql= "SELECT * from Bigclass"
Set Rsbigclass=server. CreateObject ("Adodb.recordset")
Rsbigclass.open sql,conn,1,1
Do as not rsbigclass.eof
Outbigclass=outbigclassrsbigclass ("Bigclass") "/"
Outbigclassid=outbigclassidrsbigclass ("id") "/"
Rsbigcl
Practice has proved that the use of cursors in a database is better. There are two tables in the database, one of which is huge, with about 10 million records (Big) and the other with only 5000 records (small ).
Currently, the table Big needs to be updated based on the table small.
UPDATE Big SET Bf1 = 0 WHERE BigId IN (SELECT BigId FROM Small WHERE Sf1> 0)
However, the execution speed is very slow, an
each rule, such as "skilled use of design tools (such as rational rose or Visio)" in the Classification of "professional skills", "proficiency in the use of databases or their related applications such as Sql,olap", Familiar with the company's technical system and be skilled in the development of ".
5. Score, the monthly evaluation results score, divided into staff self-test and supervisor of staff evaluation, for each of the evaluation rules of each employee monthly corresponding points.
The
the page, execute the call function:
$(function(){ getSelectVal(); $("#bigname").change(function(){ getSelectVal(); }); });
At the beginning of the page, you need to set the options in the drop-down box. Therefore, you need to call getSelectVal () at the beginning. when the main options change, getSelectVal () is also called ().PHP
Include_once ("connect. php "); // link to the database $ bigid = $ _ GET [" bigname "]; if (isset ($
is to set the option, so at the beginning of the call Getselectval (), and when the large class options change, also called Getselectval ().PHP
Include_once ("connect.php"); Link database
$bigid = $_get["Bigname"];
if (Isset ($bigid)) {
$q =mysql_query ("SELECT * FROM catalog WHERE cid = $bigid");
while ($row =mysql_fetch_array ($q)) {
$se
getSelectVal () at the beginning. When the main options change, getSelectVal () is also called ().PHP
Include_once ("Connect. PHP "); // link to the database $ bigid = $ _ Get [" bigname "]; If (isset ($ bigid )) {$ q = mysql_query ("select * From catalog where cid = $ bigid"); While ($ ROW = mysql_fetch_array ($ q )) {$ select [] = array ("ID" => $ row [ID], "t
() { getselectval (); $ ("#bigname"). Change (function() { getselectval (); In the initial page, the drop-down box is to set the options, so at the beginning of the call Getselectval (), and when the big class options change, also called the Getselectval ().PHPinclude_once("connect.php");//Link Database $bigid=$_get["Bigname"]; if(isset($bigid)){ $q=mysql_query("SELECT * FROM catalog
/******** A sqlserver pageCode*************/
Select top 10 *From(Select [ID], [bigid], [smallid],[Goodsname], row_number () over (order by id asc) as rowno/** select dozens of records in ascending order of IDs ***/From [tb_goods]) AsWhere rowno> N * 10 // n indicates the number of pages to be displayed, and 10 rows of records are displayed on each page;
/***
This method has almost no restrictions, because it generates a new sorting column for any s
ProjectID from Haulunitproject where Bigid =haulunit.bigid and UN Itid= Haulunit.unitid)) as Projectnames, Haulunit.manager, Haulunit.managerphone, Haulunit.secure, haulunit.se Curephone, @b:= (Ifnull ((SELECT SUM (minusnum) from Breakrules, Haulemployeeout WHERE breakrules. Bigemployeeoutid = Haulemployeeout. Bigemployeeoutid and Haulemployeeout.unitid = Haulunit.unitid and breaktime like CONCAT (year (Curdate ()), '%')) , 0) as Unitminismum, Haulin
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.